<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>安全检查详情</title>
    <style>
        /* 全局样式 */
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
            background-color: #f5f7fa;
            margin: 0;
            padding: 0;
            color: #333;
            line-height: 1.6;
        }



        .navbar-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .navbar-brand {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .navbar-brand i {
            margin-right: 8px;
            color: #2980b9;
        }

        .navbar-nav {
            display: flex;
            align-items: center;
        }


        .btn-group {
            display: flex;
            align-items: center;
            margin-left: 15px;
        }

        .btn-group .btn {
            margin-left: 8px;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }


        .btn-primary:hover {
            background-color: #2980b9;
        }

        .btn-outline-primary {
            background-color: transparent;
            color: #3498db;
            border: 1px solid #3498db;
        }

        .btn-outline-primary:hover {
            background-color: #3498db;
            color: white;
        }

        .welcome-text {
            margin-left: 15px;
            font-size: 14px;
            color: #555;
        }

        /* 主容器样式 */
        .container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            display: flex;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 250px;
            background-color: #f9f9f9;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-right: 20px;
        }

        .sidebar-item {
            display: block;
            padding: 10px 15px;
            margin-bottom: 8px;
            background-color: white;
            border-radius: 5px;
            text-decoration: none;
            color: #555;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .sidebar-item:hover {
            background-color: #e8f5e9;
            color: #3a7d44;
        }

        /* 内容区域 */
        .content {
            flex: 1;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 25px;
        }

        h2 {
            color: #2c3e50;
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        /* 检查项样式 */
        .inspection-detail {
            margin-bottom: 20px;
        }

        .inspection-item {
            margin-bottom: 15px;
        }

        .item-title {
            font-weight: 600;
            margin-bottom: 5px;
            color: #555;
        }

        .item-content {
            background-color: #f9f9f9;
            border: 1px solid #eee;
            border-radius: 5px;
            padding: 12px;
            font-size: 14px;
            line-height: 1.5;
        }

        .back-button {
            display: inline-block;
            background-color: #3498db;
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s ease;
        }

        .back-button:hover {
            background-color: #2980b9;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }

            .sidebar {
                margin-right: 0;
                margin-bottom: 20px;
            }
        }
    </style>
</head>
<body>

<!-- 导航栏 -->
<nav class="navbar">
    <div class="navbar-container">
        <a class="navbar-brand" href="#">
            <i class="fas fa-flask"></i>
            实验室辅助管理系统
        </a>
        <div class="navbar-nav">
            <span sec:authorize="isAuthenticated()">
                <div class="btn-group">
                    <a href="/laboratory/Info" class="btn btn-sm btn-outline-success active">实验室管理</a>
                    <a href="/email" class="btn btn-sm btn-outline-info">邮箱</a>
                    <a href="/user/admin" class="btn btn-sm btn-outline-warning">管理员界面</a>
                    <a href="/user/userInfo" class="btn btn-sm btn-outline-primary">个人中心</a>
                    <span class="welcome-text">欢迎, <span sec:authentication="name"></span>!</span>
                    <a href="/user/logout" class="btn btn-sm btn-outline-danger">退出</a>
                </div>
            </span>
        </div>
    </div>
</nav>

<!-- 主容器 -->
<div class="container">
    <!-- 侧边栏 -->


    <!-- 内容区域 -->
    <div class="content">
        <h2>安全检查记录详情</h2>


        <!-- 检查项 -->
        <div class="bg-white p-6 rounded-lg shadow-md">
            <h3 class="text-xl font-semibold mb-4">检查内容详情</h3>

            <div class="inspection-detail">
                <div class="inspection-item">
                    <div class="item-title">门窗检查结果</div>
                    <div class="item-content" th:text="${inspection.doorWindowCheck}">内容</div>
                </div>

                <div class="inspection-item">
                    <div class="item-title">电器线路检查结果</div>
                    <div class="item-content" th:text="${inspection.electricalCheck}">内容</div>
                </div>

                <div class="inspection-item">
                    <div class="item-title">消防设施检查结果</div>
                    <div class="item-content" th:text="${inspection.fireEquipmentCheck}">内容</div>
                </div>

                <div class="inspection-item">
                    <div class="item-title">仪器设备检查结果</div>
                    <div class="item-content" th:text="${inspection.instrumentCheck}">内容</div>
                </div>

                <div class="inspection-item">
                    <div class="item-title">物品摆放检查结果</div>
                    <div class="item-content" th:text="${inspection.itemArrangementCheck}">内容</div>
                </div>

                <div class="inspection-item">
                    <div class="item-title">清洁卫生检查结果</div>
                    <div class="item-content" th:text="${inspection.cleanlinessCheck}">内容</div>
                </div>

                <div class="inspection-item">
                    <div class="item-title">其他检查结果</div>
                    <div class="item-content" th:text="${inspection.otherCheck} ?: '无特殊问题，一切正常。'">无特殊问题，一切正常。</div>
                </div>
            </div>

            <!-- 返回按钮 -->
            <div class="mt-6">
                <a href="/safety-inspection/list" class="back-button">返回列表</a>
            </div>
        </div>
    </div>
</div>

</body>
</html>
